package com.design.bridge.tvremote;

public class BridgeDemo {
    public static void main(String[] args) {
        TV sonyTV = new SonyTV();
        TV samsungTV = new SamsungTV();

        RemoteControl basicRemoteForSony = new BasicRemoteControl(sonyTV);
        RemoteControl advancedRemoteForSamsung = new AdvancedRemoteControl(samsungTV);

        basicRemoteForSony.turnOn(); // Output: Sony TV is turned on.
        basicRemoteForSony.turnOff(); // Output: Sony TV is turned off.

        advancedRemoteForSamsung.turnOn(); // Output: Samsung TV is turned on. Adjusting volume...
        advancedRemoteForSamsung.turnOff(); // Output: Samsung TV is turned off.
    }
}
